import {fetchRequest} from '../../utils/request'

export const shoppingAPI = { //直播间购物
  productLisAPI:(data)=>{
   return fetchRequest('/channel/product-list',data,'post')
  },
}

export const selectCitytAPI = {
  // 城市/热门城市 列表
  areaList:(data)=>{
   return fetchRequest('/h5app/index/area-list',data,'post')
  },
}

export const fmListAPI = { //频率列表
  channelList:(data)=>{
   return fetchRequest('/h5app/index/channel-list',data,'post')
  },
}
export const actListAPI = { //活动中心
  actList:(data)=>{
   return fetchRequest('/h5app/my/act-list',data,'post')
  },
}
export const myPageAPI = { //我的
  myPage:(data)=>{
   return fetchRequest('/h5app/my/page',data,'post')
  },
}

export const loginAPI = { //登录
  oauth:(data)=>{//微信授权
   return fetchRequest('/h5app/oauth',data,'post')
  },
  sendCode:(data)=>{ //发送验证码登录
    return fetchRequest('/h5/channel/user/send-code',data,'post')
   },
   login:(data)=>{ //验证码登录
    return fetchRequest('/h5app/login',data,'post')
   },
}

export const pastPageAPI = { //往期
  replayList:(data)=>{
   return fetchRequest('/h5app/live/replay-list',data,'post')
  },
}

export const indexAPI = { //首页
  tagbanner:(data)=>{ //二级页面的banner
   return fetchRequest('/h5app/index/tagbanner',data,'post')
  },
  tagvideo:(data)=>{ //二级页面的video
    return fetchRequest('/h5app/index/tagvideo',data,'post')
   },
   access:(data)=>{ //二级页面的banner
    return fetchRequest('/h5app/index/quick-access',data,'post')
   },
}